<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;

/**
 * @ORM\Entity
 * @ORM\Table(name="refill")
 */
class Refill extends MappedSuperclassBase
{

    /**
     * 
     * @ORM\ManyToOne(targetEntity="SimOwner", inversedBy="refills")
     * @ORM\JoinColumn(name="sim_owner_id", referencedColumnName="id")
     */
    protected $simOwner;

    /**
     *
     * @ORM\Column(type="decimal", precision=10, scale=2)
     */
    protected $sum;

    /**
     *
     * @ORM\Column(type="datetime")
     * @Gedmo\Timestampable(on="create")
     */
    protected $date;

    /**
     *
     * @ORM\Column(type="string", name="type_up")
     */
    protected $typeUp;

    public function getSimOwner()
    {
        return $this->simOwner;
    }

    public function setSimOwner($simOwner)
    {
        $this->simOwner = $simOwner;
    }

    public function getSum()
    {
        return $this->sum;
    }

    public function setSum($sum)
    {
        $this->sum = $sum;
    }

    public function getDate()
    {
        return $this->date;
    }

    public function setDate($date)
    {
        $this->date = $date;
    }

    public function getTypeUp()
    {
        return $this->typeUp;
    }

    public function setTypeUp($typeUp)
    {
        $this->typeUp = $typeUp;
    }

}